package beans;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author zEROSTORER
 */
public class User_data {
    
    private String id;
    private String user_likes_id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_likes_id() {
        return user_likes_id;
    }

    public void setUser_likes_id(String user_likes_id) {
        this.user_likes_id = user_likes_id;
    }
    
    public boolean register_user(){
        boolean flag=false;
        String sql="insert into user_likes(id,category_id) values('"+this.id+"','"+this.user_likes_id+"')";
        DBMS d=new DBMS();
        if(d.guid(sql)!=0){
            flag=true;
        }
        return flag;
    }
    
}
